#include "Character.h"
#include "Gesture.h"
#include "macros.h"
#include "CollDetection.h"

Character::Character(void)
{
	position = Vector3f::Zero();
	position[0] = -10.0f;
	position[2] = 2.0f;
	angle = 90.0f;
}


Character::~Character(void)
{
}

void Character::move(vector<Wall>& duvarlar,float speed)
{
	Vector3f direction;
	
	direction[0] = -sin(DEG2RAD(angle));
	direction[1] = 0.0f;
	direction[2] = cos(DEG2RAD(angle));

	direction.normalize();
	position += direction * speed;		
}

void Character::move( const Vector3f& dist )
{
	position += dist;
}
